package cn.xmy.demo01.service.impl;

import cn.xmy.demo01.dao.ShopsDao;
import cn.xmy.demo01.pojo.Shops;
import cn.xmy.demo01.service.ShopDaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;
@Service
public class ShopServiceDaoImpl implements ShopDaoService {
    @Autowired
    ShopsDao shopsDao;

    @Override
    public List<Shops> FindShops() throws SQLException, ClassNotFoundException {
        return shopsDao.FindShops();
    }

    @Override
    public List<Shops> FindComment(String id) throws SQLException, ClassNotFoundException {
        List<Shops>shops=shopsDao.FindComment(id);
        return shops;
    }

    @Override
    public List<Shops> getImg(String id) throws SQLException, ClassNotFoundException {
        List<Shops> shops=shopsDao.getImg(id);
        return shops;
    }
}
